import instance from '../request'

export const login = (data) => {
    return instance({
        url: '/auth/login',
        method: 'POST',
        data
    })
}

export const test = () => {
    return instance({
        url: '/auth/test',
        method: 'GET'
    })
}

export const getHomeData = (params) => {
    return instance({
        url: '/abstract/queryAbstract',
        params,
    })
}

export const delAbstract = (data) => {
    return instance({
        url: '/abstract/deleteAbstract',
        method: "DELETE",
        data
    })
}

